// 重置样式
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

// 根元素
html, body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

// 通用类
.text-center {
  text-align: center;
}

.text-primary {
  color: #4A90E2;
}

.text-warning {
  color: #F5A623;
}

.text-error {
  color: #D0021B;
}

// 动画
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

// 反馈动画
@keyframes correct-flash {
  0% {
    background-color: transparent;
  }
  50% {
    background-color: #7ED321;
    opacity: 0.3;
  }
  100% {
    background-color: transparent;
  }
}

@keyframes wrong-shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
